import request from "@/utils/request";
import { ParseData } from "@/utils/utils";

//获取用户列表分页
export const GetUserList = (data: any) => {
  return request({
    method: "GET",
    url: `/yonghu?${ParseData(data)}`,
  });
};
//用户上传
export const UserUpload = (data: any) => {
  return request({
    method: "POST",
    url: `/yonghu/daoru`,
  });
};
//查询用户详情
export const GetUserDetail = (data: any) => {
  return request({
    method: "GET",
    url: `/yonghu/xiangqing/${data.id}`,
  });
};
// 查询用户 我发布的 视频列表
export const GetMyDeployVideo = (data: any) => {
  return request({
    method: "GET",
    url: `/yonghu/xiangqing/shipin/fabu?${ParseData(data)}`,
  });
}
// 查询用户 我关注的 视频列表
export const GetMyFollowVideo = (data: any) => {
  return request({
    method: "GET",
    url: `/yonghu/xiangqing/shipin/guanzhu?${ParseData(data)}`,
  });
}
// 查询用户 我点赞的 视频列表
export const GetMyLikeVideo = (data: any) => {
  return request({
    method: "GET",
    url: `/yonghu/xiangqing/shipin/dianzan?${ParseData(data)}`,
  });
}
// 查询用户 我收藏的 视频列表
export const GetMySaveVideo = (data: any) => {
  return request({
    method: "GET",
    url: `/yonghu/xiangqing/shipin/shoucang?${ParseData(data)}`,
  });
}
// 查询用户 项目信息
export const GetProjectInfo = (data: any) => {
  return request({
    method: "GET",
    url: `/yonghu/xiangqing/xiangmu?${ParseData(data)}`,
  });
};
// 查询用户 项目发布信息
export const GetProjectDeployInfo = (data: any) => {
  return request({
    method: "GET",
    url: `/yonghu/xiangqing/xiangmuxinxifabu?${ParseData(data)}`,
  });
};
// 查询用户 联合体
export const GetConsortiumInfo = (data: any) => {
  return request({
    method: "GET",
    url: `/yonghu/xiangqing/lianheti?${ParseData(data)}`,
  });
};
// 查询用户 评论
export const GetCommentInfo = (data: any) => {
  return request({
    method: "GET",
    url: `/yonghu/xiangqing/pinglun?${ParseData(data)}`,
  });
};
// 查询用户 详情收藏 供应商
export const GetSaveProvider = (data: any) => {
  return request({
    method: "GET",
    url: `/yonghu/xiangqing/shoucang/gongyingshang?${ParseData(data)}`,
  });
};
// 查询用户 详情收藏 产品
export const GetSaveProduct = (data: any) => {
  return request({
    method: "GET",
    url: `/yonghu/xiangqing/shoucang/chanpin?${ParseData(data)}`,
  });
};
// 查询用户 详情收藏 项目
export const GetSaveProject = (data: any) => {
  return request({
    method: "GET",
    url: `/yonghu/xiangqing/shoucang/xiangmu?${ParseData(data)}`,
  });
};
